package com.qingyun.customview.clockview

import android.content.Context
import android.graphics.Color
import android.graphics.Paint
import android.util.AttributeSet
import android.view.View

class ClockView @JvmOverloads constructor(
    context: Context,
    attrs: AttributeSet? = null,
    defStyleAttr: Int = 0,
) : View(context, attrs, defStyleAttr) {
    private val mPaintOutSize by lazy {
        Paint().apply {
            style = Paint.Style.STROKE
            strokeWidth = 6f
            isAntiAlias = true
            isDither = true
            color = Color.GREEN
        }
    }
    private val mPaintDegree by lazy {
        Paint().apply {
            style = Paint.Style.STROKE
            strokeWidth = 3f
            color = Color.RED
            isDither = true
            isAntiAlias = true
        }
    }
    private val mPaintHour by lazy {
        Paint().apply {
            style = Paint.Style.STROKE
            strokeWidth = 12f
            color = Color.RED
            isDither = true
            isAntiAlias = true
        }
    }
    private val mPaintMin by lazy {
        Paint().apply {
            style = Paint.Style.STROKE
            strokeWidth = 8f
            color = Color.RED
            isDither = true
            isAntiAlias = true
        }
    }
}